<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>主页面</title>
    <style>
        body {
            font-family: Arial, sans-serif;
        }

        .container {
            max-width: 400px;
            margin: 0 auto;
            padding: 40px;
            background-color: #fff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
        }

        h2 {
            margin-top: 0;
            color: #333;
        }

        .button-container {
            text-align: center;
        }

        .button-container button {
            padding: 10px 20px;
            margin-bottom: 10px;
            background-color: #4caf50;
            color: #fff;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }

        .button-container button:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
    <div class="container">
        <h2>选择功能</h2>

        <div class="button-container">
            <button onclick="goToLogin()">登录</button>
            <button onclick="goToQuery()">查询</button>
        </div>
    </div>

    <script>
        function goToLogin() {
            // 跳转到登录页面的逻辑
            window.location.href = "/login";
        }

        function goToQuery() {
            // 跳转到查询页面的逻辑
            window.location.href = "/query";
        }
    </script>
</body>
</html>
